package action.admin.assignment;

import beans.Assignment;
import dao.MngAssignment;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class toCreateAssign extends HttpServlet {

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException {
        try {
            String class_id = request.getParameter("class_id");
            request.setAttribute("class_id", class_id);
            RequestDispatcher rd = request.getRequestDispatcher("index.jsp?page=create_assign");
            rd.forward(request, response);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
